package cn.changeforyou.base.exception;

import cn.changeforyou.base.model.Module;

public abstract class AbstractErrorInfo implements ErrorInfo {

    protected String message;

    @Override
    public int unitCode() {
        return getModelCode() + getCode();
    }

    @Override
    public abstract int getCode();

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public abstract Module getModule();
}